package extends08;

public class Demo {
    public static void main(String[] args) {
        //Shape shape = new Shape();
        Rectangle r=new Rectangle();
        r.length=12;
        r.width=10;
        System.out.println(r.getPerimeter());
        System.out.println(r.getArea());

        System.out.println("-------------");

        Square square = new Square();
        square.side = 16;
        System.out.println(square.getPerimeter());
        System.out.println(square.getArea());
    }
}
